/**
 *  Copyright (c)  2011-2020 Panguso, Inc.
 *  All rights reserved.
 *
 *  This software is the confidential and proprietary information of Panguso, 
 *  Inc. ("Confidential Information"). You shall not
 *  disclose such Confidential Information and shall use it only in
 *  accordance with the terms of the license agreement you entered into with Panguso.
 */

package storage.dbobject;

import java.util.Hashtable;
import java.util.UUID;
/**
 * 
 * @author fenyo rome
 *
 */
public class DbLogBody {
	/**
	 * cl_key
	 */
	public static final String CL_KEY = "KEY";
	private String rowKey;
	/**
	 * cl_name
	 */
	public static final String CL_NAME = "name";
	private String name;
	/**
	 * cl_abbreviation
	 */
	public static final String CL_ABBREVIATION = "abbreviation";
	private String abbreviation;
	/**
	 * cl_chinese
	 */
	public static final String CL_CHINESE = "chinese";
	private String chinese;
	/**
	 * cl_
	 */
	public static final String CL = "chinese";
	/**
	 * cl_hasValue
	 */
	public static final String CL_HASVALUE = "hasValue";
	private String hasValue;
	/**
	 * cl_value
	 */
	public static final String CL_VALUE = "value";
	private Hashtable<String, String> valueDescriptionMap;
	/**
	 * 
	 * @param rowKey
	 * rowKey
	 * @param name
	 * name
	 * @param abbreviation
	 * abbreviation
	 * @param chinese
	 * chinese
	 * @param hasValue
	 * hasValue
	 * @param valueDescriptionMap
	 * valueDescriptionMap
	 */
	public DbLogBody(String rowKey, String name, String abbreviation,
			String chinese, String hasValue,
			Hashtable<String, String> valueDescriptionMap) {
		this.rowKey = rowKey;
		this.abbreviation = abbreviation;
		this.name = name;
		this.chinese = chinese;
		this.hasValue = hasValue;
		this.valueDescriptionMap = valueDescriptionMap;
	}
	/**
	 * 
	 * @param name
	 * name
	 * @param abbreviation
	 * abbreviation
	 * @param chinese
	 * chinese
	 * @param hasValue
	 * hasValue
	 * @param valueDescriptionMap
	 * valueDescriptionMap
	 */
	public DbLogBody(String name, String abbreviation, String chinese,
			String hasValue, Hashtable<String, String> valueDescriptionMap) {
		this.rowKey = UUID.randomUUID().toString();
		this.abbreviation = abbreviation;
		this.name = name;
		this.chinese = chinese;
		this.hasValue = hasValue;
		this.valueDescriptionMap = valueDescriptionMap;
	}

	/**
	 * @return the rowKey
	 */
	public String getRowKey() {
		return rowKey;
	}

	/**
	 * @param rowKey
	 *            the rowKey to set
	 */
	public void setRowKey(String rowKey) {
		this.rowKey = rowKey;
	}

	/**
	 * @return the name
	 */
	public String getName() {
		return name;
	}

	/**
	 * @param name
	 *            the name to set
	 */
	public void setName(String name) {
		this.name = name;
	}

	/**
	 * @return the abbreviation
	 */
	public String getAbbreviation() {
		return abbreviation;
	}

	/**
	 * @param abbreviation
	 *            the abbreviation to set
	 */
	public void setAbbreviation(String abbreviation) {
		this.abbreviation = abbreviation;
	}

	/**
	 * @return the chinese
	 */
	public String getChinese() {
		return chinese;
	}

	/**
	 * @param chinese
	 *            the chinese to set
	 */
	public void setChinese(String chinese) {
		this.chinese = chinese;
	}

	/**
	 * @return the hasValue
	 */
	public String getHasValue() {
		return hasValue;
	}

	/**
	 * @param hasValue
	 *            the hasValue to set
	 */
	public void setHasValue(String hasValue) {
		this.hasValue = hasValue;
	}

	/**
	 * @return the valueDescriptionMap
	 */
	public Hashtable<String, String> getValueDescriptionMap() {
		return valueDescriptionMap;
	}

	/**
	 * @param valueDescriptionMap
	 *            the valueDescriptionMap to set
	 */
	public void setValueDescriptionMap(
			Hashtable<String, String> valueDescriptionMap) {
		this.valueDescriptionMap = valueDescriptionMap;
	}
}
